Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Add a sleep-loop to get the Docker daemon's tcp socket - the pid file is...#229

Merged
SvenDowideit merged 1 commit into
boot2docker:masterfrom
SvenDowideit:add-more-sleep-loops
Aug 22, 2014
Merged

Add a sleep-loop to get the Docker daemon's tcp socket - the pid file is...#229
SvenDowideit merged 1 commit into
boot2docker:masterfrom
SvenDowideit:add-more-sleep-loops

Conversation

@SvenDowideit
Copy link
Copy Markdown
Contributor

...n't ready the first time we ask for it on one slower box I have

and in the process, it was easier to return the error and use it...

… isn't ready the first time we ask for it on one slower box I have
@SvenDowideit
Copy link
Copy Markdown
Contributor Author

@tianon @gmlewis please consider :) this is for today's release.

SvenDowideit pushed a commit that referenced this pull request Aug 22, 2014
Add a sleep-loop to get the Docker daemon's tcp socket - the pid file is...
@SvenDowideit SvenDowideit merged commit 22b11f1 into boot2docker:master Aug 22, 2014
Comment thread util.go
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, it is a good habit to put regexp.MustCompile calls outside of all functions when they are static, as they can then be processed once at startup instead of upon each function call, since regexp compilation can be an expensive operation (not that this code is time-critical)... just FYI.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, thanks - good point. Its turning out to be hard to learn good go habits when learning go from a non-styled codebase :)

but you're helping immensely - thank you.

SvenDowideit pushed a commit to SvenDowideit/boot2docker-cli that referenced this pull request Nov 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants